package com.macro.mall.portal.controller;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.model.AddressData;
import com.macro.mall.portal.service.SiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SiteController {
    @Autowired
    private SiteService service;
    /**
     * 智能搜索
     * 赵王17267365647秀洲区王江泾镇南元丰大道82282700
     */
    @PostMapping("/member/address/seek/{adds}")
    public CommonResult<AddressData> seek(@Validated @PathVariable String adds) {
        AddressData ums = service.seek(adds);
        return CommonResult.success(ums);
    }
}
